package org.pi.common.observerpattern

trait ObservableImpl extends Observable {
	private val observers = new scala.collection.mutable.ListBuffer[Observer]();
	override def notifyObservers() {
		for(obs <- observers) {
			obs.notifiedByObservable(this)
		}
	}
	override def addObserver(obs: Observer) {
		observers += obs
	}
}
